import Mock from 'mockjs'
import HomeApi from './mockData/home'
import userApi from './mockData/user'
import permission from './mockData/permission'
import product from './mockData/product'


// 1.拦截的路径
// 2. 请求的方法
// 3. 制造假数据

Mock.mock(/api\/home\/getTableData/,'get',HomeApi.getTableData)
Mock.mock(/api\/home\/getCountData/,'get',HomeApi.getCountData)
Mock.mock(/api\/home\/getChartData/,'get',HomeApi.getChartData)
Mock.mock(/api\/user\/getUserData/,'get',userApi.getUserList)
Mock.mock(/api\/user\/deleteUser/,'get',userApi.deleteUser)
Mock.mock(/api\/user\/addUser/,'post',userApi.createUser)
Mock.mock(/api\/user\/editUser/, "post",userApi.updateUser)
Mock.mock(/api\/permission\/getMenu/,'post',permission.getMenu)
Mock.mock(/api\/product\/getProductList/,'get',product.getProductList)
